<!DOCTYPE HTML>
<html  lang="zh" xmlns:th="http://www.thymeleaf.org">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-modInfo-edit" th:object="${modInfo}">
            <input id="modId" name="modId" th:field="*{modId}"  type="hidden">
            <div class="form-group">	
                <label class="col-sm-3 control-label">模板名称：</label>
                <div class="col-sm-8">
                    <input id="modNm" name="modNm" th:field="*{modNm}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">全路径名：</label>
                <div class="col-sm-8">
                    <input id="modFilepath" name="modFilepath" th:field="*{modFilepath}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">底板文件全路径名：</label>
                <div class="col-sm-8">
                    <input id="modBgFilepath" name="modBgFilepath" th:field="*{modBgFilepath}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">备注：</label>
                <div class="col-sm-8">
                    <input id="modNote" name="modNote" th:field="*{modNote}" class="form-control" type="text">
                </div>
            </div>
		</form>
    </div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "evo/modInfo";
		$("#form-modInfo-edit").validate({
			rules:{
				modNm:{
					required:true,
				}
			}
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/edit", $('#form-modInfo-edit').serialize());
	        }
	    }
	</script>
</body>
</html>
